package com.baichang.taoshunda.dao;

import com.baichang.framework.dao.BaseDao;
import com.baichang.framework.model.Page;
import com.baichang.taoshunda.entity.BusinessMoneyRecord;

import java.util.Map;

public interface BusinessMoneyRecordDao extends BaseDao<BusinessMoneyRecord> {

    /**
     * 保证金查询
     *
     * @param typeId
     * @param is
     * @return
     */
    Map<String, Object> queryTypeMoney(Integer typeId, Integer is);

    /**
     * 审核退款保证金
     *
     * @param id
     * @param
     * @return
     */
    int updateStatus(Integer id, Integer status);

    /**
     * @param businessName
     * @param nowPage
     * @param pageSize
     * @return
     */
    Page queryAuditingDepsoit(String businessName, int nowPage, int pageSize);

    /**
     * 查询保证金的记录
     *
     * @param businessName
     * @param nowPage
     * @param pageSize
     * @return
     */
    Page queryRecord(String businessName, int nowPage, int pageSize);

    /**
     * @param busId
     * @param is
     * @return
     */
    Map<String, Object> getRecordInfo(Integer busId, Integer is);

    /**
     * 查询是否是退款状态
     *
     * @param id
     * @return
     */
    int getCountAboutStates(Integer id);
}